-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [DHIS2-18116] check return value of parseDate
#3823
Conversation
Hi @superskip, |
@simonadomnisoru - I only tested in the edit profile modal..! But that one certainly uses a different file.. Thanks for double checking, great discovery! 🕵️ |
🚀 Deployed on https://deploy-preview-3823--dhis2-capture.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on 2.42,2.41.2,2.40.6,2.39.7 versions
## [101.7.1](v101.7.0...v101.7.1) (2024-10-04) ### Bug Fixes * [DHIS2-18116] check return value of `parseDate` ([#3823](#3823)) ([a1626e0](a1626e0))
🎉 This PR is included in version 101.7.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
DHIS2-18116
The bug occurred because there was missing validation of the return value from
parseDate
.There are other occurrences of parseDate (and parseTime) in the same file, but for some reason the obvious way to trigger these functions does not work, and therefore I don't know when or if they ever get called.
EDIT:
Regarding how to trigger the other functions, see comment below (thanks @simonadomnisoru)